{**
 * Prescription General Send
 *
 * @package   OpenEMR
 * @link      http://www.open-emr.org
 * @author    Brady Miller <brady.g.miller@gmail.com>
 * @copyright Copyright (c) 2017 Brady Miller <brady.g.miller@gmail.com>
 * @license   https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
 *}
<html>
<head>

{headerShow}

<link rel="stylesheet" href="{$GLOBALS.css_header}" type="text/css">
</head>
<body class="body_top">

<span class="title"><b>{xl t='Send'|escape:'html'}</b></span>
<div style="margin-top:10px;">
    {if $process_result}
        {$process_result|escape:'html'}
        <br/>
    {/if}

    <div style="float:left">
        <form name="genform1" method="post" action="{$TOP_ACTION}send&id={$prescription->id|escape:'html'}" target="_new" onsubmit="return top.restoreSession()">
        <input type="submit" name="submit" value="{xl t='Download'|escape:'html'} ({xl t='PDF'|escape:'html'})" style="width:100;font-size:9pt;"/>
        <input type="hidden" name="process" value="{$PROCESS|escape:'html'}" />
        </form>
    </div>

    <div style="float:left">
        <form name="send_prescription" method="post" action="{$TOP_ACTION}send&id={$prescription->id|escape:'html'}" target="_new" onsubmit="return top.restoreSession()">
        <input type="submit" name="submit" value="{xl t='View Printable'|escape:'html'} ({xl t='HTML'|escape:'html'})" style="width:100;font-size:9pt;"/>
        <input type="hidden" name="process" value="{$PROCESS|escape:'html'}" />
        </form>
    </div>

    <div style="float:none">
        <form name="send_prescription" method="post" action="{$TOP_ACTION}send&id={$prescription->id|escape:'html'}&print_to_fax=true" target="_new" onsubmit="return top.restoreSession()">
        <input type="submit" name="submit" value="{xl t='Download Fax'|escape:'html'}" style="width:100;font-size:9pt;"/>
        <input type="hidden" name="process" value="{$PROCESS|escape:'html'}" />
        </form>
    </div>

    <div>
        <form name="send_prescription" method="post" action="{$TOP_ACTION}send&id={$prescription->id|escape:'html'}" onsubmit="return top.restoreSession()">
        <input type="submit" name="submit" value="{xl t='Email'|escape:'html'}" style="width:100;font-size:9pt;" /><input type="text" name="email_to"  size="25" value="{$prescription->pharmacy->get_email()|escape:'html'}">
        <br/>
        <input type="submit" name="submit" value="{xl t='Fax'}" style="width:100;font-size:9pt;"/><input type="text" name="fax_to"  size="25" value="{$prescription->pharmacy->get_fax()}" >
        <input type="hidden" name="process" value="{$PROCESS|escape:'html'}" />
        </form>
        <form name="send_prescription" method="post" action="{$TOP_ACTION}send&id={$prescription->id|escape:'html'}" target="_new" onsubmit="return top.restoreSession()">
        <input type="submit" name="submit" value="{xl t='Auto Send'|escape:'html'}" style="width:100;font-size:9pt;" /> {html_options name="pharmacy_id" options=$prescription->pharmacy->utility_pharmacy_array() selected=$prescription->pharmacy->id}
        <input type="hidden" name="process" value="{$PROCESS|escape:'html'}" />
        </form>
    </div>
</div>

</body>
</html>
